Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tidy natural_disasters.py example #2643

Merged
merged 9 commits into from
Jul 4, 2022
Merged

Tidy natural_disasters.py example #2643

merged 9 commits into from
Jul 4, 2022

Conversation

palewire
Copy link
Contributor

@palewire palewire commented Jul 3, 2022

Fixes #2627

Before:
176780327-c5f2ee5d-69e8-46fe-8bb2-89e7e3843e7a

After:
visualization (1)

Copy link
Contributor

@mattijn mattijn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its great you are digging through all the examples!
If we going to improve the enhancement of this chart, then maybe we can improve it even bit more (its a chart in the case-study section anyways).

See my in-line suggestions that you could accept to your liking.

If all changes are accepted it should resolve into the following:
image
I changed the following:

  • Defined the x-axis as temporal, had to start the domain from 1899 to 2018 to get a tick at 1900 and a tooltip for 2017 values.
  • Changed the format of legend and tooltip values.
  • Provided a title in combination with a smaller sized subtitle.
  • Included an offset on the y-axis labels so they won't overlap with the circles.

altair/examples/natural_disasters.py Outdated Show resolved Hide resolved
altair/examples/natural_disasters.py Outdated Show resolved Hide resolved
altair/examples/natural_disasters.py Outdated Show resolved Hide resolved
altair/examples/natural_disasters.py Outdated Show resolved Hide resolved
altair/examples/natural_disasters.py Outdated Show resolved Hide resolved
altair/examples/natural_disasters.py Outdated Show resolved Hide resolved
altair/examples/natural_disasters.py Outdated Show resolved Hide resolved
@palewire
Copy link
Contributor Author

palewire commented Jul 3, 2022

Sure. I trust your judgement. I accepted all your proposals.

@mattijn mattijn merged commit cea5636 into vega:master Jul 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

x-axis tick labels in Natural Disasters case study need clean up
2 participants